.xtx-body {
    padding: 30px 0 85px;
    background-color: #f6f6f6;
}

/* ----------------- 公共样式 ----------------- */
.panel {
    padding: 28px 20px;
    /* 有作用吗 */
    /*box-sizing: border-box;*/
    background-color: #ffffff;
    margin-bottom: 20px;
}

.panel .panel-title {
    display: flex;
    justify-content: space-between;
    height: 45px;
}

.panel .panel-title h4 {
    font-size: 22px;
    font-weight: normal;
    color: #333333;
    /*border-bottom: 1px solid;*/
}

.panel .panel-title a {
    margin-top: 8px;
    font-size: 16px;
    font-weight: normal;
    color: #999999;
}

/* ----------------- 公共样式 ----------------- */


.xtx-body .container {
    display: flex;
}

/* ----------------- 侧边栏 ----------------- */
.xtx-body .aside {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-right: 18px;
    width: 227px;
    min-height: 500px;

    background-color: #ffffff;
    /* 使用了align-items: center; 就不用这个对本文本对齐了 */
    /*text-align: center;*/
}

.xtx-body .aside .avatar {
    margin: 47px 76px 11px 66px;

    width: 85px;
    height: 85px;
    border-radius: 50%;

    background-image: url('../uploads/avatar_1.png');
    background-size: cover;

    text-align: center;
}

.xtx-body .aside p {
    margin-bottom: 12px;

    font-size: 18px;
    font-weight: 530;
    color: #333333;
    line-height: 1;
}


.xtx-body .aside .vip {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 32px;
    width: 93px;
    height: 26px;

    border-radius: 13px;
    background-image: linear-gradient(264deg, #e05e2f 0%, #ea745e 95%);
    background-blend-mode: normal, normal;

    font-size: 14px;
    color: #f9f9f9;
    line-height: 26px;
}

.xtx-body .aside .vip i {
    /* 图标和文字对齐 */
    margin-right: 5px;

    width: 15px;
    height: 16px;

    background-image: url('../images/vip_gold.png');
    background-size: cover;
}

.aside .list {
    padding-left: 52px;
    box-sizing: border-box;
    border-top: 1px solid #f4f4f4;

    width: 100%;
}

.aside .list h5 {
    margin: 32px 0;
    line-height: 1;

    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    color: #333333;
}

.aside .list ul {
    margin-bottom: 29px;
}

.aside .list ul li {
    margin-bottom: 26px;
    height: 16px;
}

.aside .list ul li:last-child {
    margin-bottom: 0;
}

.aside .list ul a {
    font-size: 14px;
    line-height: 1;
    color: #666666;
}

/* todo 鼠标放在a标签有一个点击样式 */
.aside .list ul a:hover {
    color: #5cb99e;
}


/* ----------------- 主体内容 ----------------- */
.xtx-body .main {
    flex: 1;
    width: 999px;
    min-height: 500px;
    /*background-color: #ffffff;*/
}

.main .overview {
    /* a在一行显示 */
    display: flex;
    margin-bottom: 18px;
    height: 132px;
    padding: 20px 0px;
    /* 这个自动内减一定要有 */
    box-sizing: border-box;
    background-color: #fff;
}

.main .overview p {
    font-size: 16px;
}

/* 左右两个盒子各占弹性容器的一半 */
.main .overview div {
    flex: 1;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}

.main .overview div a img {
    width: 25px;
    margin-bottom: 10px;
}

/* 把概览区域最后一个图边宽度为18px */
/* overview的div 里边的左后一个a里面的img */
.main .overview div a:last-child img {
    width: 18px;
}

.main .overview div span {
    font-size: 25px;
    color: #e05e30;
}

.main .overview div:first-child {
    border-right: 1px solid #f4f4f4;
}

.main .overview div:last-child {

}

/* ----------------- 订单 ----------------- */
.orders .content ul li {
    display: flex;
    width: 100%;
    height: 137px;
    box-sizing: border-box;
    border: 1px solid #f4f4f4;
    margin-bottom: 21px;
}

.orders .content ul li:last-child {
    margin-bottom: 0;
}

.orders .content .goods {
    flex: 1;
    display: flex;
    margin-right: 120px;
    align-items: center;
}

.orders .content .goods .pic {
    margin: 17px 5px 14px 12px;
    /* w107px+h107px 快速写法 */
    width: 107px;
    height: 107px;
}

.orders .content .goods .pic img {
    width: 100%;
}

.orders .goods .txt {
    flex: 1;
    width: 0;
}

.orders .content .goods .txt h5 {
    /*<!-- 给h5表添加单行溢出的代码, 把多余的文字变成省略号 -->*/
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    font-size: 16px;
    font-weight: normal;
    color: #333333;
    line-height: 1;
}

.orders .content .goods .txt p {
    margin-top: 13px;
    font-size: 14px;
    color: #999999;
    line-height: 1;
}

.orders .content .status {
    width: 120px;
    align-self: center;
    font-size: 14px;
    color: #e05e30;
}

.orders .content .status span {
    margin-left: 5px;
}

.orders .content .status a {
    display: block;
    font-size: 14px;
    color: #999999;
}

.orders .content .pay {
    width: 200px;
    height: 100%;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;

    text-align: center;
    font-size: 14px;
    color: #333333;
}

.orders .content .pay p:first-child {
    color: #9a2e1f;
}

/* 实现 当前元素中的子元素标签 水平垂直居中*/
.orders li .common {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.orders .content .action {
    width: 180px;
}

.orders .content .action a {
    font-size: 14px;
    color: #333333;
    line-height: 1;
}

.orders .content .action a:first-child {
    /* a标签的父级为 .action这个盒子, 而.action又有一个 .common类 */
    /* 这个 .common将a标签的父级变成弹性容器, 里面的弹性盒子可以随便设置宽高 */
    /* 所以这里可以将 a标签转为块级元素或者行内块元素了 */
    /*display: block;*/
    margin-bottom: 16px;
    width: 100px;
    height: 30px;
    background-color: #5eb69c;

    font-size: 14px;
    color: #ffffff;
    border-radius: 2px;

    /* 这里实现的一行文字在盒子中垂直水平居中*/
    text-align: center;
    line-height: 30px;
}

.orders .content .action a:nth-child(2) {
    margin-bottom: 10px;
}

